function [ Theta1, Theta2, precisao ] = chama_RNA(  )
addpath('../');
input_layer_size=6;
hidden_layer_size=13;
num_labels=5;
initial_Theta1 = randInitializeWeights(6, 13);
initial_Theta2 = randInitializeWeights(13, 5);
initial_nn_params = [initial_Theta1(:) ; initial_Theta2(:)];

options = optimset('MaxIter', 50);
lambda = 1;
[X, y]=matriz_features();
costFunction = @(p) nnCostFunction(p, ...
                                   6, ...
                                   hidden_layer_size, ...
                                   5, X, y, lambda);
[nn_params, ~] = fmincg(costFunction, initial_nn_params, options); 

Theta1 = reshape(nn_params(1:hidden_layer_size * (input_layer_size + 1)), ...
                 hidden_layer_size, (input_layer_size + 1));

Theta2 = reshape(nn_params((1 + (hidden_layer_size * (input_layer_size + 1))):end), ...
                 num_labels, (hidden_layer_size + 1));
             
pred = predict(Theta1, Theta2, X);             
precisao=mean(double(pred == y)) * 100;
end

